﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace commodity.Models
{
    public class Commodity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
        [MaxLength(32)]
        [Required]
        public string CommodityName { get; set; }
        [Column(TypeName = "decimal(18,2)")]
 
        public ICollection<SecondCommodityMenuCommodity> SecondCommodityMenuCommodities { get; set; } = new List<SecondCommodityMenuCommodity>();
        public ICollection<CommodityInformation> CommodityInformations { get; set; } = new List<CommodityInformation>();
        public ICollection<Goods> goods { get; set; } = new List<Goods>();

    }
}
